﻿using System.Data.Entity;

namespace OPM.Models
{
    public class OpmContext : DbContext
    {
        public OpmContext() : base("DefaultConnection")
        {
            Configuration.AutoDetectChangesEnabled = false;
        }
        public DbSet<OpmUser> OpmUsers { get; set; }
        public DbSet<OpmRole> OpmRoles { get; set; }
        public DbSet<Menu> Menus { get; set; }
        public DbSet<UserRole> UserRoles { get; set; }
        public DbSet<RoleMenu> RoleMenus { get; set; } 
    }
}